import java.util.Arrays;

public class Test20230812_1 {
    public static void main(String[] args){
        int [] num = {2,3,4,3,3,4,3};
        String a= Arrays.toString(num);
        System.out.println(a);
        for(int i=0; i<num.length; i++){
            int count=0;
            for(int j=1; j<num.length; j++) {
                if (num[i] == num[j]) {
                    count++;
                }
            }
                if(count>(num.length/2)){
                    System.out.println(num[i]);
                    break;
                }

        }
    }
}
